<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/bugReport/bugReport/save}">
        <input type="hidden" name="id" th:if="${bugReport}" th:value="${bugReport.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="title" placeholder="请输入标题" th:value="${bugReport?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属项目</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="project" placeholder="请输入所属项目" th:value="${bugReport?.project}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="devNum" placeholder="请输入设备编号" th:value="${bugReport?.devNum}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">故障等级</label>
            <div class="layui-input-block">
                <input type="radio" name="bugLevel" value="3" title="建议" checked>
                <input type="radio" name="bugLevel" value="2" title="普通" th:checked="${bugReport?.bugLevel} eq 2">
                <input type="radio" name="bugLevel" value="1" title="严重" th:checked="${bugReport?.bugLevel} eq 1">
                <input type="radio" name="bugLevel" value="0" title="停机" th:checked="${bugReport?.bugLevel} eq 0">
            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">处理状态</label>-->
<!--            <div class="layui-input-inline">-->
<!--                <input class="layui-input" type="text" name="bugState" placeholder="请输入处理状态" th:value="${bugReport?.bugState}">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">反馈结果</label>-->
<!--            <div class="layui-input-inline">-->
<!--                <input class="layui-input" type="text" name="result" placeholder="请输入反馈结果" th:value="${bugReport?.result}">-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${bugReport?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>